package com.kirk.crawler.constant;

/**
 *  <p> ResourceConstants.java </p>
 *
 * @Author   kirkliu
 * @Date     2020-08-29 22:17
 * @version  1.0.0
 * @Description  资源常量
 */
public class ResourceConstants extends SystemConstants{


    // 资源存放包名
    public static final String PACKAGE_RESOURSE = "resources";

    /**
     *  更新资源相关常量定义
     */

    // 更新文件存放包名
    public static final String PACKAGE_UPDATE = "_update";

    // 更新文件文件名
    public static final String UPDATE_FILE_NAME = "update.update";

    // 更新文件名前缀
    public static final String UPDATE_FILE_NAME_PRE = "CrawlerToolUpdate";

    // 更新文件存放路径
    public static final String UPDATE_DIR = SYSTEM_ROOT_PATH  + SYSTEM_SEPARATOR + PACKAGE_UPDATE;

    // 更新文件全路径
    public static final String UPDATE_FILE = SYSTEM_ROOT_PATH + SYSTEM_SEPARATOR + PACKAGE_UPDATE + SYSTEM_SEPARATOR + UPDATE_FILE_NAME;



    /**
     * 图片相关资源定义
     */

    // 资源图片存放包名
    public static final String PACKAGE_IMAGE = "images";

    // 资源图标存放包名
    public static final String PACKAGE_ICONS = "icons";

    // 图标资源存放相对路径
    public static final String PACKAGE_IMAGE_ICONS = PACKAGE_IMAGE + SYSTEM_SEPARATOR + PACKAGE_ICONS;


    /**
     * 返回.
     */
    public static String getDot() {
        return ".";
    }
}
